package com.groupbuying.storeinternal.dao.forManage;

import com.groupbuying.storeinternal.domain.forManage.StoreRoleMenuDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * 角色与菜单对应关系
 * @author yuwenxiaodong
 * @email yuwenxiaodong@126.com
 * @date 2019-03-22 11:55:09
 */
@Mapper
@Repository
public interface StoreRoleMenuDao {

	StoreRoleMenuDO get(String id);
	
	List<StoreRoleMenuDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreRoleMenuDO storeRoleMenu);
	
	int update(StoreRoleMenuDO storeRoleMenu);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<BigInteger> listMenuIdByRoleId(String roleId);

	int removeByRoleId(BigInteger roleId);

	int removeByMenuId(String menuId);

	int batchSave(List<StoreRoleMenuDO> list);
}
